﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace Hx.WebSite
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute("Category", "{controller}/Category/{category}/{page}",
                new { controller = "Home", action = "Category", page = 1 }
                );
            routes.MapRoute("Default", "{controller}/{action}/{page}",
                new { controller = "Home", action = "Index", page = 1 }
                );
        }
    }
}
